Skip to main content
Version: 4.x.x

LoggerResponseEventData


import { LoggerResponseEventData } from "@hyper-fetch/core"

Description

Defined in managers/logger/logger.manager.types.ts:27

Preview

type LoggerResponseEventData<Adapter> = {
details: ResponseDetailsType;
request: RequestInstance;
requestId: string;
response: ResponseReturnType<unknown, unknown, Adapter>;
}

Structure

{
details: {
isCanceled: boolean;
isOffline: boolean;
retries: number;
timestamp: number;
};
request: Request<any, any, any, any, any, any, AdapterType<any, any, any, any, any>, any, any, any>;
requestId: string;
response: {
data: GenericDataType | null;
error: GenericErrorType | null;
extra: T extends AdapterType<any, any, any, infer A, any> ? A : never | null;
status: T extends AdapterType<any, any, infer S, any, any> ? S : never | null;
success: boolean;
};
}